package com.qf.huigou.service.impl;

import com.qf.huigou.mapper.CategoryMapper;
import com.qf.huigou.pojo.Category;
import com.qf.huigou.pojo.CategoryExample;
import com.qf.huigou.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version 1.8.0_131
 * @Author WangYiZhu
 * @Email 2641956765@qq.com
 * @Time 2022/12/08 13:54
 */
@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> findCategoryAll() {
        List<Category> categories= categoryMapper.selectByExample(new CategoryExample());
        return categories;
    }
}
